package com.yanfan.maintain.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 设备保养计划表(MaintenancePlan)实体类
 *
 * @author makejava
 * @since 2023-03-09 14:41:27
 */

public class MaintenancePlan implements Serializable {
    private static final long serialVersionUID = 757227145850077566L;
    /**
     * 设备关联关系List
     */
    List<MaintenanceDevice> maintainDevices;
    private Long id;
    /**
     * 保养单号
     */
    private String maintainNumber;
    /**
     * 保养名称
     */
    private String maintainName;
    /**
     * 保养类型（定期、临时保养）
     */
    private Integer dateRule;
    private String dateRuleName;
    /**
     * 保养规则  小时、日、周
     */
    private Integer maintainPeriod;
    /**
     * 保养规则  小时、日、周
     */
    private String maintainPeriodName;
    /**
     * 保养时间开始
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date maintainTime;
    /**
     * 保养结束
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date maintainTimeEnd;
    /**
     * 保养人员
     */
    private Long maintainPerson;
    /**
     * 维修项目数
     */
    private Long itemNum;
    /**
     * 保养人员名称
     */

    private String maintainPersonName;
    /**
     * 手机号
     */
    private String phoneNumber;
    private Long orderType;
    private String orderTypeName;
    /**
     * 巡检id
     */
    private Long orderId;
    /**
     * 巡检单号
     */
    private String orderNumber;
    /**
     * 计划创建时间
     */
    private Date createTime;
    private Long userId;


    /***
     * 分页——————————————————————————————————————————————相关——————————————————————————
     */

    /**
     * 当前页
     */
    private Integer pageNum;
    /**
     * 页条数
     */
    private Integer pageSize;

    private Date lastDate;


    private Date nextDate;


    // 创建人ID
    private Long createdId;

    // 创建人名称
    private String createBy;

    private String content;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMaintainNumber() {
        return maintainNumber;
    }

    public void setMaintainNumber(String maintainNumber) {
        this.maintainNumber = maintainNumber;
    }

    public String getMaintainName() {
        return maintainName;
    }

    public void setMaintainName(String maintainName) {
        this.maintainName = maintainName;
    }

    public Integer getDateRule() {
        return dateRule;
    }

    public void setDateRule(Integer dateRule) {
        this.dateRule = dateRule;
    }

    public String getDateRuleName() {
        return dateRuleName;
    }

    public void setDateRuleName(String dateRuleName) {
        this.dateRuleName = dateRuleName;
    }

    public Integer getMaintainPeriod() {
        return maintainPeriod;
    }

    public void setMaintainPeriod(Integer maintainPeriod) {
        this.maintainPeriod = maintainPeriod;
    }

    public String getMaintainPeriodName() {
        return maintainPeriodName;
    }

    public void setMaintainPeriodName(String maintainPeriodName) {
        this.maintainPeriodName = maintainPeriodName;
    }

    public Date getMaintainTime() {
        return maintainTime;
    }

    public void setMaintainTime(Date maintainTime) {
        this.maintainTime = maintainTime;
    }

    public Date getMaintainTimeEnd() {
        return maintainTimeEnd;
    }

    public void setMaintainTimeEnd(Date maintainTimeEnd) {
        this.maintainTimeEnd = maintainTimeEnd;
    }

    public Long getMaintainPerson() {
        return maintainPerson;
    }

    public void setMaintainPerson(Long maintainPerson) {
        this.maintainPerson = maintainPerson;
    }

    public Long getItemNum() {
        return itemNum;
    }

    public void setItemNum(Long itemNum) {
        this.itemNum = itemNum;
    }

    public String getMaintainPersonName() {
        return maintainPersonName;
    }

    public void setMaintainPersonName(String maintainPersonName) {
        this.maintainPersonName = maintainPersonName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public List<MaintenanceDevice> getMaintainDevices() {
        return maintainDevices;
    }

    public void setMaintainDevices(List<MaintenanceDevice> maintainDevices) {
        this.maintainDevices = maintainDevices;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getOrderType() {
        return orderType;
    }

    public void setOrderType(Long orderType) {
        this.orderType = orderType;
    }

    public String getOrderTypeName() {
        return orderTypeName;
    }

    public void setOrderTypeName(String orderTypeName) {
        this.orderTypeName = orderTypeName;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    public Date getNextDate() {
        return nextDate;
    }

    public void setNextDate(Date nextDate) {
        this.nextDate = nextDate;
    }

    public Long getCreatedId() {
        return createdId;
    }

    public void setCreatedId(Long createdId) {
        this.createdId = createdId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}

